﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="renewal-notice-update.aspx.cs" Inherits="carinsurance_renewal_renewal_notice_update" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=GetGlobalResourceObject("General", "RenewalNotice")%></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager AsyncPostBackTimeout="3000" runat="Server" EnablePartialRendering="true"
        ID="ScriptManager1" />
    <div style="border: thin solid #0000FF;">
    <div>
        <asp:ValidationSummary runat="server" ValidationGroup="premium" ID="valPremium" ShowMessageBox="false"
            ShowSummary="true" ForeColor="Red" Font-Bold="true" HeaderText="Opps.. Please complete all (*) fields." />
    </div>
    <div style="padding: 5px; margin: 5px;"><asp:Label ID="lblName" Text="<%$Resources:CarInsurance,Name%>" Font-Bold="true" runat="server" Width="170px" /><asp:Label ID="lblCustName" Font-Bold="true" runat="server" Width="250px" /></div>
    <div style="padding: 5px; margin: 5px;"><asp:Label ID="lblQuote" Text="<%$Resources:CarInsurance,ReferenceNo%>" Font-Bold="true" runat="server" Width="170px" /><asp:Label ID="lblQuoteRefNo" Font-Bold="true" runat="server" Width="250px" /></div>
    <div style="padding: 5px; margin: 5px;">
        <asp:Label ID="lblNetPremium" Text="<%$Resources:NonGG,NetPremium%>" Font-Bold="true" runat="server" Width="170px" />
        <asp:TextBox ID="txtNetPremium" runat="server" MaxLength="20" Width="170px"></asp:TextBox><asp:RequiredFieldValidator
                ID="rfvNetPremium" runat="server" ControlToValidate="txtNetPremium" ErrorMessage=""
                Text="*" Display="Dynamic" ValidationGroup="premium"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                    ID="revNetPremium" runat="server" ControlToValidate="txtNetPremium" ValidationGroup="premium"
                    ErrorMessage="**" ValidationExpression="^[0-9]+(\.[0-9]{1,2})?$"></asp:RegularExpressionValidator>
    </div>
    <div style="padding: 5px; margin: 5px;">
        <asp:Label ID="lblLicensePlate" Text="<%$Resources:CarInsuranceResultPage,LicensePlate%>" Font-Bold="true" runat="server" Width="170px" />
        <asp:TextBox ID="txtLicensePlate" runat="server" Width="170px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvEditLicensePlate" runat="server" ControlToValidate="txtLicensePlate"
            Display="Dynamic" ErrorMessage="" Text="*" ValidationGroup="premium"></asp:RequiredFieldValidator>
    </div>
    <div style="padding: 5px; margin: 5px;">
        <asp:Label ID="Label1" Text="<%$Resources:CarInsurance,CompanyName%>" Font-Bold="true" runat="server" Width="170px" />
        <asp:DropDownList ID="ddlBrokerProvider" runat="server">
        </asp:DropDownList>
        <asp:RequiredFieldValidator ID="rfvBrokerProvider" ValidationGroup="premium" runat="server"
            ControlToValidate="ddlBrokerProvider" InitialValue="-1" ErrorMessage="" Text="*" />
    </div>
    <div style="padding: 5px; margin: 5px;">
        <asp:Label runat="server" ID="lblInsuranceType" Font-Bold="true" Width="170px" Text="<%$Resources:General,InsuranceType%>" />
        <asp:DropDownList ID="ddlInsuranceType" runat="server">
        </asp:DropDownList>
        <asp:RequiredFieldValidator runat="server" ID="rfvNInsuranceType" ControlToValidate="ddlInsuranceType"
            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="premium" Display="Dynamic"></asp:RequiredFieldValidator>
    </div>
    <div style="padding: 5px; margin: 5px;">
        <asp:Label runat="server" ID="Label2" Font-Bold="true" Width="170px" Text="คุ้มครองเดือน(Month)" />
        <asp:DropDownList ID="ddlCoverageMonth" runat="server">
        </asp:DropDownList>
        <asp:RequiredFieldValidator runat="server" ID="rfvCoverageMonth" ControlToValidate="ddlCoverageMonth"
            ErrorMessage="" Text="*" InitialValue="-1" ValidationGroup="premium" Display="Dynamic"></asp:RequiredFieldValidator>
    </div>
    <div style="padding: 5px; margin: 5px;">
        <asp:Label runat="server" ID="Label4" Font-Bold="true" Width="170px" Text="" />
        <asp:CheckBox runat="server" ID="chkNotGenerateLead" Text="<%$Resources:General,NotGenerateLead%>" />
    </div>
    <div style="padding: 5px; margin: 5px;">
        <asp:Label runat="server" ID="Label3" Font-Bold="true" Width="170px" Text="Remark" />
        <asp:TextBox ID="txtRemark" runat="server" MaxLength="300" Width="300px"></asp:TextBox>
    </div>
    <div style="padding: 10px; margin: 10px;width:440px; text-align:center">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Button ID="btnSubmit" runat="server" ValidationGroup="premium" Text="Submit" Width="100" Visible="true"
                    BackColor="#3672a0" ForeColor="White" OnClick="btnSubmit_Click" />&nbsp;&nbsp;<asp:Label runat="server" ID="lblSuccess" ForeColor="Green" /><asp:Label runat="server" ID="lblError" ForeColor="Red" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div></div>
    </form>
</body>
</html>
